package com.groupseven.backend.mapper;

import com.groupseven.backend.domain.Paper.Paper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PaperMapper {
    /**
     * @Author 王志华
     * @return
     */
    List<Paper> selectAllPapers();
    /**
     * @Author 王志华
     */
    List<Paper> selectByPaperName(String PaperName);
    /**
     * @Author 王志华
     */
    int insertPaperInfo(Paper paper);

    List<Paper> selectByPaperusername(String username);

    Paper selectByPaperNumber(String PaperNumber);

    int updatePaper(Paper paper);

    int deleteByPaperNumber(String PaperNumber);

    int deleteallPapers();

    List<Paper> selectMyPapersForAssessment(String username);

    ///////////////////////
    int mutildelPapers(List<String> PaperNumbers);

    List<Paper> getlikeByPaperName(String PaperName);

    List<Paper> getlikeMyPaperInfo(String username);

    List<Paper> getlikeByPaperNumber(String PaperNumber);

    List<Paper> getlikeByAllAuthors(String AllAuthors);
    ///////////////////////

    /////////////////////////////////
    List<Paper> searchqueryPaper(String query);
    ///////////////////////////////

    List<Paper> selectByPaperAllAuthors(String username);

    //////////////////////////////////////////
    List<Paper> searchuserqueryPaper (String query,String username);
    //////////////////////////////////////

    List<Paper> selectMyPapers(String username);


}
